package com.cn.web.controller;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cn.web.entity.TUser;
import com.cn.web.service.BaseService;
import com.cn.web.service.UserService;

@Controller
@RequestMapping("user")
public class UserAction extends BaseControllerImpl<TUser> {
	
	@Autowired
	private UserService userService;
    
	@Override
	protected BaseService<TUser> getBaseService() {
		return userService;
	}

	@Override
	protected TUser getDeleteEntity() {
		TUser tuser = new TUser();
		tuser.setUpdateTime(new Date());
		tuser.setUpdateUser(1L);
		return tuser;
	}
}
